<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JSON 格式化工具</title>
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
</head>
<body>
    <div class="container">
        <div class="header">
            <a href="index.html" class="back-button">
                <i class="fas fa-arrow-left"></i>
            </a>
            <h2>JSON 格式化工具</h2>
        </div>
        <textarea id="jsonInput" class="json-textarea" placeholder="在这里输入未格式化的 JSON 数据..."></textarea>
        <div class="button-group">
            <button onclick="formatJSON()">格式化 JSON</button>
            <button onclick="clearJSON()">清空</button>
            <button onclick="copyJSON()">复制</button>
            <button onclick="exportJSON()">导出</button>
        </div>
        <div id="toast" class="toast">操作成功</div>
    </div>
    <script src="../js/toJson.js"></script>
</body>
</html> 